#include "MenuScene.h"
#include "AppMacros.h"
USING_NS_CC;

MenuScene::MenuScene()
{
}


MenuScene::~MenuScene()
{
}

CCScene* MenuScene::scene()
{
    // 'scene' is an autorelease object
    CCScene *scene = CCScene::create();
    
    // 'layer' is an autorelease object
    MenuScene *layer = MenuScene::create();

    // add layer as a child to scene
    scene->addChild(layer);

    // return the scene
    return scene;
}

bool MenuScene::init()
{
    //////////////////////////////
    // 1. super init first
    if ( !CCLayer::init() )
    {
        return false;
    }

	this->setTouchEnabled(true);

    CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
    CCPoint origin = CCDirector::sharedDirector()->getVisibleOrigin();

	_titleLayer = TitleLayer::create();
	this->addChild(_titleLayer);

	this->schedule( schedule_selector(MenuScene::update) );


    return true;
}

void MenuScene::update(float dt)
{
	if (_titleLayer->isDone() )
	{

	}
}